<!DOCTYPE html>
<html>

<head>
  <title>数据劫持</title>
</head>

<body>
  <div id="app">
    <p>{{a.a}}</p>
    <div>{{b}}</div><input type="text" v-model='b' />
    {{hello}}
  </div>

  <script src="/js/index.js"></script>
  <script>
    let vue = new Vue({
      el: '#app',
      data: { a: { a: '是a' }, b: '是b' },
      computed: {
        hello(){
          return this.b + this.b
        }
      }
    })
  </script>
</body>

</html>